package com.asset.dispoal.file.plaintiffFile.service;

import com.asset.dispoal.file.plaintiffFile.api.PlaintiffFileService;
import com.asset.dispoal.file.plaintiffFile.service.commom.PlaintiffFileDeleteCommand;
import com.asset.dispoal.file.plaintiffFile.service.commom.PlaintiffFileInsertCommand;
import com.asset.dispoal.plaintiffFile.dto.PlaintiffFileRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author qr
 * @date 2022/3/22$
 */
@Service
public class PlaintiffFileServiceImpl implements PlaintiffFileService {


    @Autowired
    PlaintiffFileInsertCommand plaintiffFileInsertCommand;

    @Autowired
    PlaintiffFileDeleteCommand plaintiffFileDeleteCommand;

    @Override
    public void insert(PlaintiffFileRequest request) {
        plaintiffFileInsertCommand.execute(request);
    }

    @Override
    public void delete(String id) {
        plaintiffFileDeleteCommand.execute(id);
    }


}
